package com.game.utils;

import android.util.Log;

import com.game.state.BasicState;

/**
 * 用于执行view的初始化方法*/
public class LoadingThread extends Thread{
	private BasicState state;
	
	public LoadingThread(BasicState state){
		this.state=state;
	}
	
	@Override
	public void run() {
		super.run();
		Log.i("infos", "开始初始化");
		state.init();
		//更改gameView的loading状态
		state.gameView.loading=false;
		state.gameView.loadingStep=-1;
		state.initIng=false;
		Log.i("infos", "初始化完成");
		/*初始化完成后才执行逻辑处理线程*/
		state.startLogic();
	}
}